enum FilterFlag { EXCLUDE, INCLUDE }

class SearchControlList {

    Resource resource
    FilterFlag filterFlag
    static belongsTo = [account:Account]
 
    def isExclude() {
        return filterFlag == FilterFlag.EXCLUDE
    }
}